﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

namespace DAL
{
    public class BaseProvider
    {
        public static SqlDatabase Provider
        {
            get 
            {
                
                try
                {
                    SqlDatabase con = new SqlDatabase(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString);                    
                    return con;
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
    }
}
